package com.freesky.biz.activity.domain;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.*;
import com.alibaba.excel.enums.poi.BorderStyleEnum;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import com.alibaba.excel.enums.poi.VerticalAlignmentEnum;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.freesky.common.annotation.Desensitized;
import lombok.Data;

import java.util.HashMap;
import java.util.Map;

/**
 * 话费充值明细
 */
@Data
@ContentRowHeight(22)
@ColumnWidth(25)
@HeadRowHeight(25)
@HeadStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER,
        verticalAlignment = VerticalAlignmentEnum.CENTER,
        borderLeft= BorderStyleEnum.THIN,
        borderRight= BorderStyleEnum.THIN,
        borderTop= BorderStyleEnum.THIN,
        borderBottom= BorderStyleEnum.THIN)//表头样式
@ContentStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER,
        verticalAlignment = VerticalAlignmentEnum.CENTER,
        borderLeft= BorderStyleEnum.THIN,
        borderRight= BorderStyleEnum.THIN,
        borderTop= BorderStyleEnum.THIN,
        borderBottom= BorderStyleEnum.THIN)
public class TRechargeDetail implements java.io.Serializable{

    private static final long serialVersionUID = 1L;

    @ExcelProperty("记录ID")
    private String id;

    @ExcelProperty("手机号码")
    @Desensitized(type = Desensitized.DesensitizedType.PHONE)
    private String mobile;

    @ExcelProperty("充值金额")
    private Integer amt;

    @ExcelProperty("状态")
    private String processed;

    @ExcelProperty("充值时间")
    private String processedDate;

    @ExcelProperty("充值渠道")
    private String channel;

    @ExcelProperty("充值凭证")
    private String voucherNo;

    @ExcelProperty("充值次数")
    private Integer sendTimes;

    @ExcelProperty("订单号")
    private String orderId;

    @ExcelProperty("下单单号")
    private String rechargeId;

    @ExcelProperty("下单状态")
    private String respErrmsg;

    @ExcelProperty("业务编码")
    private String busiCode;

    @ExcelProperty("归属客户")
    private String ownerName;

    @ExcelIgnore
    private Integer orderSeq;

    @ExcelIgnore
    private String lastReqId;

    @ExcelIgnore
    private String respCode;

    @ExcelIgnore
    private String state;

    @ExcelIgnore
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private Map<String, Object> params;

    public Map<String, Object> getParams() {
        if (params == null) {
            params = new HashMap<>();
        }
        return params;
    }

    public void setParams(Map<String, Object> params)
    {
        this.params = params;
    }
}
